#include<stdio.h>
int main()
{
    int age;
    int n;
    int sum = 0;
    scanf("%d",&n);
    int m = n;
    while(m--)
    {
        scanf("%d",&age);
        sum += age;
    }
    printf("Sum = %d\n",sum);
    printf("Average = %.2lf",1.0*sum/n);
    return 0;
}